/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jobascjp;

public class Frodo extends Hobbit {
    public static void main(String[] args){
        Short myGold = 7;
        System.out.println(Hobbit.countGold(myGold, 6)); // Original: System.out.println(countGold(myGold, 6));
    }
}
class Hobbit {
    static int countGold(int x, int y){ return x + y; } //Original: int countGold(int x, int y){ return x + y; }
}
    // What is the result?
    // 13
    // Compilation fails due to multiple errors
    // Compilation fails due to an error on line 6;
    // Compilation fails due to an error on line 7;
    // Compilation fails due to an error on line 11;
    
    // Anmerkungen:
    // Klammern passen, main passt formal, main-Inhalte muss man genau 
    // beobachten. countGold() ist in der Elternklasse, main ist aber static
    // der Methodenaufruf daher ein Problem. D also Fehler in L7 ist korrekt.
